<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');

#
# Debug tool
##
function debug($bug, $mode = "v", $die = true) {
	echo "<pre>";
	
	if($mode == "v")
		var_dump($bug);
	else if($mode == "p")
		print_r($bug);
	
	echo "</pre>";
	
	if(die)
		die();
}
?>